@import "./tools.less";

.content {
  .main {
    overflow: hidden;
    padding-top: 10px;
    .left {
      background-color: #f5f5f5;
      float: left;
      width: 70%;
      padding: 20px;
      padding-bottom: 60px;
      position: relative;
      h3 {
        font-size: 22px;
        margin-bottom: 20px;
      }
      .num {
        span {
          color: #999;
        }
        .moderator {
          margin: 10px 0 20px;
        }
      }
      .pages-wrap {
        .post-list {
          li {
            border-bottom: 1px solid @hvColor;
            padding: 10px 0;
            display: flex;
            &:first-child {
              border-top: 1px solid @hvColor;
            }
            .small-pic {
              flex: 3;
              position: relative;
              a {
                width: 100px;
                height: 100px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                }
              }
            }
            .subject {
              width: 430px;
              padding: 10px;
              box-sizing: border-box;
              .title-wrap {
                font-size: 20px;
                margin-bottom: 20px;
                p {
                  display: inline-block;
                }
                h2 {
                  display: inline-block;
                  a {
                    &:hover {
                      color: @tmColor;
                    }
                  }
                }
              }
              p {
                color: #666;
              }
            }
            .count {
              flex: 4;
              position: relative;
              p {
                display: inline-block;
                width: 60px;
                height: 60px;
                background-color: #eee;
                text-align: center;
                line-height: 25px;
                padding: 5px 0;
                box-sizing: border-box;
                position: absolute;
                &:first-child {
                  top: 50%;
                  left: 25%;
                  transform: translate(-50%, -50%);
                }
                &:last-child {
                  top: 50%;
                  right: 25%;
                  transform: translate(50%, -50%);
                }
              }
            }
          }
        }
      }
      .pages {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        a {
          display: inline-block;
          width: 30px;
          height: 30px;
          line-height: 30px;
          background-color: @hvColor;
          text-align: center;
          border-radius: 5px;
          &:first-child,
          &:last-child {
            width: 50px;
          }
          &:first-child {
            margin-right: 5px;
          }
          &:last-child {
            margin: 0 5px;
          }
          &:hover {
            background-color: @tmColor;
          }
          .current {
            color: white;
          }
        }
        .prev,
        .next {
          width: 80px;
        }
      }
    }
    .right {
      background-color: #f5f5f5;
      float: right;
      width: 25%;
      padding: 10px;
      box-sizing: border-box;
      .title {
        font-size: 22px;
        text-align: center;
      }
      .list-wrap {
        > li {
          margin: 10px 0;
          h2 {
            font-size: 18px;
            margin-bottom: 5px;
          }
          ul {
            li {
              margin-left: 15px;
              line-height: 20px;
              h3 {
                display: inline-block;
                a {
                  &:hover {
                    color: @hvColor;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
